using System;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Joy.Erp.BasicArchives.Core.Filters;

namespace Joy.Erp.BasicArchives.Storage
{
    public interface IWarehouseAppService
    {
        Task<WarehouseDto> GetAsync(Guid id);
        Task<WarehouseDto> FindAsync(string filter);
        Task<WarehouseDto> FindBySourceKeyAsync(string sourceKey, string sourceType);
        Task<PagedResultDto<WarehouseDto>> GetListAsync(FilterRequestDto input);
        Task<PagedResultDto<WarehouseDto>> QueryAsync(FilterGroupRequestDto input);
        Task<WarehouseDto> CreateAsync(WarehouseCreateDto input);
        Task<WarehouseDto> UpdateAsync(Guid id, WarehouseUpdateDto input);
        Task DeleteAsync(Guid id);
    }
}